function fail(message, status, res) {
  res.status(status).send({
    message,
    data: null
  })
}

function success(message, data, res) {
  res.send({
    message,
    data
  })
}

module.exports = {
  fail,
  success
}